Armed electromagnetic gun